﻿namespace Commander.Core.UIs.WinForms
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    public partial class BaseDialog : Form
    {
        public BaseDialog()
        {
            InitializeComponent();
        }

        public void SetContent(Control view)
        {
            pnlContent.Controls.Clear();
            pnlContent.Controls.Add(view);

            view.Parent = pnlContent;
            view.Dock = DockStyle.Fill;
        }
    }
}
